import * as mongoose from 'mongoose';
import {User} from './user.schema'
export const PhotoModel = new mongoose.Schema({
	user: {
		type:mongoose.Types.ObjectId,
		ref:"User"
	},
	url: String,
});

export interface Photo extends Document {
	readonly user: string|User;
	readonly url: string;
}
